import {IsNotEmpty, IsNumber} from 'class-validator';
import {ApiProperty} from '@nestjs/swagger';

export class CreateBookingDto {
    @IsNotEmpty({message: '会议室名称不能为空'})
    // @IsNumber()
    @ApiProperty({description: '会议室名称', required: true})
    meetingId: string;

    @IsNotEmpty({message: '开始时间不能为空'})
    // @IsNumber()
    @ApiProperty({description: '开始时间', required: true})
    startTime: string;

    @IsNotEmpty({message: '结束时间不能为空'})
    // @IsNumber()
    @ApiProperty({description: '结束时间', required: true})
    endTime: string;

    @ApiProperty({description: '备注', required: false})
    note: string;
}
